<template>
  <view>

    <view>手机型号：{{model}}</view>
    <view>设备像素比：{{pixelRatio}}</view>
    <view>可使用窗口宽度：{{windowWidth}}</view>
    <view>可使用窗口高度：{{windowHeight}}</view>
    <view>应用设置的语言：{{language}}</view>
    <view>引擎版本号：{{version}}</view>
    <view>客户端平台：{{platform}}</view>

  </view>
</template>

<script>
  export default {
    data() {
      return {
        model: "",
        pixelRatio: "",
        windowWidth: "",
        windowHeight: "",
        language: "",
        version: "",
        platform: "",
      };
    },
    onLoad() {
      var that = this;
      uni.getSystemInfo({
        success(res) {
          console.log(res);
          console.log("手机型号：", res.model);
          that.model = res.model;
          console.log("设备像素比：", res.pixelRatio);
          that.pixelRatio = res.pixelRatio;
          console.log("可使用窗口宽度：", res.windowWidth);
          that.windowWidth = res.windowWidth;
          console.log("可使用窗口高度：", res.windowHeight);
          that.windowHeight = res.windowHeight;
          console.log("应用设置的语言：", res.language);
          that.language = res.language;
          console.log("引擎版本号：", res.version);
          that.version = res.version;
          console.log("客户端平台：", res.platform);
          that.platform = res.platform;
        }
      })
    }
  }
</script>

<style lang="scss">

</style>